#include "commonpage.h"
#include "ui_commonpage.h"

CommonPage::CommonPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CommonPage)
{
    ui->setupUi(this);
}

CommonPage::~CommonPage()
{
    delete ui;
}

void CommonPage::setCommonPageUi(const QString &title, const QString &image)
{
    ui->pageTitle->setText(title);//设置标题
    ui->musicImageLabel->setPixmap(QPixmap(image));//设置封面

    ui->musicImageLabel->setScaledContents(true);

}
